<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  namespace="PetShop.Domain.Model"
				   assembly="PetShop">

	<class name="Category" table="Category" >

		<id name="CategoryID" column="CatId" type="System.String" access="field.pascalcase-underscore" >
			<generator class="assigned"/>
		</id>

		<property name="Description" column="Descn"  access="field.pascalcase-underscore" not-null="false" type="System.String"  length="255" insert="true" update="true"/>
		<property name="Name" column="Name"  access="field.pascalcase-underscore" not-null="false" type="System.String"  length="80" insert="true" update="true"/>
		<property name="BannerData" column="BannerData" access="field.pascalcase-underscore" not-null="false" type="System.String"  length="255" insert="true" update="true"/>

		<bag name="ListProductInfo" cascade="none" inverse="true" lazy="true" access="field.pascalcase-underscore" >
			<key column="Category" />
			<one-to-many class="ProductEntity" />
		</bag>
		
		
	</class>
</hibernate-mapping>